﻿using System;

/// <summary>
/// CodeSmith自动转换数据库表的所有实体 V2.
/// </summary>
namespace YunZuan.Models.Entities
{
    /// <summary>
    /// Modal class: Sys_Record.
    /// </summary>
    [Serializable]
    public class LogInfo
    {

        #region Private Properties

        private long? _recordID;
        private int? _operationType;
        private string _operationName;
        private DateTime? _beginTime;
        private DateTime? _endTime;
        private decimal? _operationSeconds;
        private string _module;
        private string _menthod;
        private string _hostAddress;
        private int? _result;
        private string _excetionMsg;
        private string _requestParam;
        private string _excetionTrack;

        #endregion

        #region Public Properties

        /// <summary>
        /// .
        /// </summary>
        public long? RecordID
        {
            get
            {
                return _recordID;
            }
            set
            {
                _recordID = value;
            }
        }

        /// <summary>
        /// 0是客户，1是用户.
        /// </summary>
        public int? OperationType
        {
            get
            {
                return _operationType;
            }
            set
            {
                _operationType = value;
            }
        }

        /// <summary>
        /// 操作人名称.
        /// </summary>
        public string OperationName
        {
            get
            {
                return _operationName;
            }
            set
            {
                _operationName = value;
            }
        }

        /// <summary>
        /// 开始时间.
        /// </summary>
        public DateTime? BeginTime
        {
            get
            {
                return _beginTime;
            }
            set
            {
                _beginTime = value;
            }
        }

        /// <summary>
        /// 结束时间.
        /// </summary>
        public DateTime? EndTime
        {
            get
            {
                return _endTime;
            }
            set
            {
                _endTime = value;
            }
        }

        /// <summary>
        /// 操作秒数.
        /// </summary>
        public decimal? OperationSeconds
        {
            get
            {
                return _operationSeconds;
            }
            set
            {
                _operationSeconds = value;
            }
        }

        /// <summary>
        /// 操作模块.
        /// </summary>
        public string Module
        {
            get
            {
                return _module;
            }
            set
            {
                _module = value;
            }
        }

        /// <summary>
        /// 操作方法.
        /// </summary>
        public string Menthod
        {
            get
            {
                return _menthod;
            }
            set
            {
                _menthod = value;
            }
        }

        /// <summary>
        /// 操作人IP.
        /// </summary>
        public string HostAddress
        {
            get
            {
                return _hostAddress;
            }
            set
            {
                _hostAddress = value;
            }
        }

        /// <summary>
        /// 操作结果（0是成功，1是失败）.
        /// </summary>
        public int? Result
        {
            get
            {
                return _result;
            }
            set
            {
                _result = value;
            }
        }

        /// <summary>
        /// 操作信息.
        /// </summary>
        public string ExcetionMsg
        {
            get
            {
                return _excetionMsg;
            }
            set
            {
                string temp = value;
                if (!string.IsNullOrEmpty(temp) && temp.Length > 500)
                {
                    temp = temp.Substring(0, 500);
                }
                _excetionMsg = temp;
            }
        }

        /// <summary>
        /// 请求参数.
        /// </summary>
        public string RequestParam
        {
            get
            {
                return _requestParam;
            }
            set
            {
                _requestParam = value;
            }
        }

        /// <summary>
        /// .
        /// </summary>
        public string ExcetionTrack
        {
            get
            {
                return _excetionTrack;
            }
            set
            {
                _excetionTrack = value;
            }
        }

        #endregion
    }
}


